Skip to content

[clang-format] Fix mismatched break in BlockIndent#124998

Merged
owenca merged 3 commits into
llvm:mainfrom
gedare:eol-blockindent-bug
Jan 31, 2025
Merged

[clang-format] Fix mismatched break in BlockIndent#124998
owenca merged 3 commits into
llvm:mainfrom
gedare:eol-blockindent-bug

Conversation

@gedare

@gedare gedare commented Jan 29, 2025

Copy link
Copy Markdown
Contributor

Near the ColumnLimit a break could be inserted before a right parens with BlockIndent without a break after the matching left parens. Avoid these hanging right parens by disallowing breaks before right parens unless there was a break after the left parens.

Fixes #103306

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[clang-format] Weird line breaks with AlignAfterOpenBracket: BlockIndent

3 participants